<template>
  <div class="goods">
    <page-content
      :pageContentConfig="pageContentConfig"
      pageName="goods"
      contentTitle="新建商品"
    >
      <template #imgUrl="scope">
        <el-image
          style="width: 50px; height: 50px"
          :src="scope.row.imgUrl"
          :preview-src-list="[scope.row.imgUrl]"
        >
        </el-image>
      </template>
      <template #oldPrice="scope">
        {{ `￥${scope.row.oldPrice}` }}
      </template>
      <template #newPrice="scope">
        {{ `￥${scope.row.newPrice}` }}
      </template>
    </page-content>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { pageContent } from '../../../../components/page-content/index'
import { pageContentConfig } from './page-content-config'
export default defineComponent({
  name: 'goods',
  components: {
    pageContent
  },
  setup() {
    return {
      pageContentConfig
    }
  }
})
</script>

<style scoped></style>
